<div class="ui attached segment m-padded-tb-large">
    {#    <a href="#" target="_blank" class="ui teal basic left pointing large label m-margin-tb-tiny">#}
    {#        方法论#}
    {#        <div class="detail">23</div>#}
    {#    </a>#}
    {% for tag in tag_list %}
        <a href="{% url 'blog:tag_detail' tag.id %}"
                {% if tag.flag %}
           class="ui basic teal left pointing large label m-margin-tb-tiny"
                {% else %}
           class="ui basic left pointing large label m-margin-tb-tiny">
                {% endif %}
        {{ tag.name }}
        <div class="detail">{{ tag.num_posts }}</div>
        </a>
    {% endfor %}
</div>